package net.minecraft.src;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import net.minecraft.src.Packet10Flying;

public class Packet12PlayerLook extends Packet10Flying {

   public Packet12PlayerLook() {
      super();
      this.rotating = true;
   }

   public Packet12PlayerLook(float var1, float var2, boolean var3) {
      super();
      this.yaw = var1;
      this.pitch = var2;
      this.onGround = var3;
      this.rotating = true;
   }

   public void readPacketData(DataInputStream var1) throws IOException {
      this.yaw = var1.readFloat();
      this.pitch = var1.readFloat();
      super.readPacketData(var1);
   }

   public void writePacketData(DataOutputStream var1) throws IOException {
      var1.writeFloat(this.yaw);
      var1.writeFloat(this.pitch);
      super.writePacketData(var1);
   }

   public int getPacketSize() {
      return 9;
   }
}
